package com.supersonic.backend.model;

import java.util.Date;

import javax.persistence.CascadeType;
import javax.persistence.FetchType;
import javax.persistence.ManyToOne;

public class PromotionParicipateHistory extends BaseModel {
	
	@ManyToOne(cascade={CascadeType.ALL},fetch=FetchType.LAZY)
	private User user;
	
	private Date participateDate;
	
	@ManyToOne(cascade={CascadeType.ALL},fetch=FetchType.LAZY)
	private Promotion promotion;

	/**
	 * @return the user
	 */
	public User getUser() {
		return user;
	}

	/**
	 * @param user the user to set
	 */
	public void setUser(User user) {
		this.user = user;
	}

	/**
	 * @return the participateDate
	 */
	public Date getParticipateDate() {
		return participateDate;
	}

	/**
	 * @param participateDate the participateDate to set
	 */
	public void setParticipateDate(Date participateDate) {
		this.participateDate = participateDate;
	}

	/**
	 * @return the promotion
	 */
	public Promotion getPromotion() {
		return promotion;
	}

	/**
	 * @param promotion the promotion to set
	 */
	public void setPromotion(Promotion promotion) {
		this.promotion = promotion;
	}
	

}
